<?php View::render('admin/layouts/meta');?>
<body>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 报表管理
    <span class="c-gray en">&gt;</span> 客户统计
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
        <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>
<div class="page-container">
    <form>
        <div class="text-c">
            <input type="text" class="input-text" style="width:200px" placeholder="用户ID" name="uid" value="<?php echo $uid; ?>">
            <input type="text" class="input-text" style="width:200px" placeholder="用户名称" name="name" value="<?php echo $name; ?>">
            <input type="text" class="input-text" style="width:350px" id="j_time" placeholder="开始时间 - 结束时间" name="time" value="<?php echo $time; ?>">
            <input type="hidden" name="page" value="1"/>
            <button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
        </div>
    </form>
    <div class="mt-20">
        <table class="table table-border table-bordered table-hover table-bg table-sort">
            <thead>
            <tr class="text-c">
                <th width="50">ID</th>
                <th width="150">用户名称</th>
                <th width="150">注册手机号</th>
                <th width="">注册时间</th>
                <th width="">类型</th>
                <th width="">操作</th>
            </tr>
            </thead>
            <tbody>
            <?php if ($list) {
                foreach ($list as $info) {?>
                    <tr class="text-c">
                        <td><?php echo $info['id']; ?></td>
                        <td><?php echo $info['name']; ?></td>
                        <td><?php echo $info['mobile']; ?></td>
                        <td><?php echo $info['ctime']; ?></td>
                        <td>经销商</td>
                        <td>
                            <a href="javascript:;" onclick="formAlert('客户详情','<?php echo Router::getBaseUrl(); ?>/admin_report/customerInfo?ids=<?php echo $info['id']; ?>', '80%','30%')" style="text-decoration:none" >查看详情</a>
                        </td>
                    </tr>
                <?php }}?>
            </tbody>
        </table>
        <div>
            <?php echo $pageHtml; ?>
        </div>
    </div>
</div>
</body>
<?php View::render('admin/layouts/footer');?>
<script src="<?php echo Router::getBaseUrl(); ?>/lib/laydate/laydate.js"></script>

<script type="text/javascript">
    $(function(){
        laydate.render({
            elem: '#j_time'
            ,type: 'datetime'
            ,theme: '#ffd200'
            ,range: true
        });
        window.formAlert = function(title, url, w, h) {
            layer.open({
                type: 2,
                title: title,
                area: [w, h],
                content: url,
                end: function(){
                    window.location.href=location.href;
                }
            });
        }
    });
</script>
</html>
